$(function(){
        $("#id_assignment_pageDiv").myPagination({
            ajax: {
                on: true,
                callback: 'assignmentAjaxCallBack',
                url: "/order/assignmentAjaxList",
                dataType: 'html',
                param: {
                    on: true,
                    page: 1,
                    pageSize: 10
                },
                pageCountId:"id_assignment_pageCount",
                totalCountId:"id_assignment_totalCount"
            }
        });
        $("#id_accept_pageDiv").myPagination({
            ajax: {
                on: true,
                callback: 'acceptAjaxCallBack',
                url: "/order/acceptList?contentType=ajaxHtml",
                dataType: 'html',
                param: {
                    on: true,
                    page: 1,
                    pageSize: 10
                },
                pageCountId:"id_accpet_pageCount",
                totalCountId:"id_accept_totalCount"
            }
        });
        $("#id_accepted_pageDiv").myPagination({
            ajax: {
                on: true,
                callback: 'acceptedAjaxCallBack',
                url: "/order/acceptedList?contentType=ajaxHtml",
                dataType: 'html',
                param: {
                    on: true,
                    page: 1,
                    pageSize: 10
                },
                pageCountId:"id_accpeted_pageCount",
                totalCountId:"id_accepted_totalCount"
            }
        });

        $("#id_arrived_pageDiv").myPagination({
            ajax: {
                on: true,
                callback: 'arrivedAjaxCallBack',
                url: "/order/arrivedList?contentType=ajaxHtml",
                dataType: 'html',
                param: {
                    on: true,
                    page: 1,
                    pageSize: 10
                },
                pageCountId:"id_arrived_pageCount",
                totalCountId:"id_arrived_totalCount"
            }
        });
        $("#id_process_pageDiv").myPagination({
            ajax: {
                on: true,
                callback: 'processAjaxCallBack',
                url: "/order/processList?contentType=ajaxHtml",
                dataType: 'html',
                param: {
                    on: true,
                    page: 1,
                    pageSize: 10
                },
                pageCountId:"id_process_pageCount",
                totalCountId:"id_process_totalCount"
            }
        });
});


function assignmentAjaxCallBack(data){
    $("#id_assignment_div").empty();
    $("#id_assignment_div").html(data)
}
function acceptAjaxCallBack(data){
    $("#id_accept_div").empty();
    $("#id_accept_div").html(data)
}
function acceptedAjaxCallBack(data){
    $("#id_accepted_div").empty();
    $("#id_accepted_div").html(data)
}
function arrivedAjaxCallBack(data){
    $("#id_arrived_div").empty();
    $("#id_arrived_div").html(data)
}
function processAjaxCallBack(data){
    $("#id_process_div").empty();
    $("#id_process_div").html(data)
}